<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table border="1">
		<tr>
			<td>员工姓名</td>
			<td>员工性别</td>
			<td>员工年龄</td>
			<td>所属部门</td>
			<td>所在职务</td>
			<td>工龄</td>
			<td>修改操作</td>
			<td>删除操作</td>
		</tr>
		<c:forEach items="${list }" var="empolyee">
			<tru>
				<td>${empolyee.name }</td>
				<td>${empolyee.sex }</td>
				<td>${empolyee.age }</td>
				<td>${empolyee.dapartment }</td>
				<td>${empolyee.type }</td>
				<td>${empolyee.year }</td>
				<td><a href="UpdateServlet?id=${empolyee.id }">修改</a></td>
				<td><a href="DeleteServlet?id=${empolyee.id }">删除</a></td>
			</tr>
		</c:forEach>
		<tr>
			<td><a href="addEmployee.jsp">新增员工信息</a></td>
		</tr>
	</table>
</body>
</html>